<!DOCTYPE html>
<html>
<head>
	<title>this</title>
</head>
<body>
<script type="text/javascript">
	
	/* this的指向分为

		1. 函数: 	指向window
		2. 方法: 	指向调用对象

	*/
	(function fun() {
		console.log(this);		// window
	})();

	let man = {
		name: 'cuihao',
		say: function() {
			console.log(this)	// man
		}
	}
	man.say();

</script>
</body>
</html>